package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author ding
 * @since 2023-05-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_company_storage_price")
public class CompanyStoragePriceDo extends Model<CompanyStoragePriceDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("company_id")
    private Long companyId;

    @TableField("storage_id")
    private Long storageId;

    @TableField("storage_type")
    private Integer storageType;

    @TableField("free_days")
    private Integer freeDays;

    @TableField("v1_days")
    private Integer v1Days;

    @TableField("v2_days")
    private Integer v2Days;

    @TableField("v1_price")
    private Integer v1Price;

    @TableField("v2_price")
    private Integer v2Price;

    @TableField("v3_price")
    private Integer v3Price;

    @TableField("fix_price")
    private Long fixPrice;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private Long updateBy;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
